<template>
  <div class="body"></div>
</template>

<script>
import { onMounted } from "@vue/runtime-core";
import { useRouter } from 'vue-router';
export default {
  setup() {
    const router = useRouter()
    onMounted(() => {
        if(eval(sessionStorage.getItem('firstTime'))){
            // console.log(typeof eval(sessionStorage.getItem('firstTime')))
            router.push('/home')
        }
        setTimeout(()=>{
            sessionStorage.setItem('firstTime',"true")
            router.push('/home')
        },2000)
    });
  },
};
</script>
<style lang="less" scoped>
.body {
  background-image: url("http://coderbear.xyz:28019/upload/welcome.png");
  height: 100vh;
  width: 100vw;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  position: absolute;
  top: 0;
  left: 0;
}
</style>
